﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="TabDefault.ascx.vb" Inherits="TabWeek" %>
<script type="text/javascript" src="Scripts/TabDefault.js">
</script>
<table>
    <tr>
        <td style="width: 100px">
            <div class="Selector" id="SelectorDef1">
                <asp:Label ID="LblUltimi" runat="server">Ultimi eventi inseriti</asp:Label></div>
        </td>
        <td style="width: 100px">
            <div class="Selector" id="SelectorDef2">
                <asp:Label ID="LblOggi" runat="server">Eventi di oggi</asp:Label></div>
        </td>
        <td style="width: 100px">
            <div class="Selector" id="SelectorDef3">
                <asp:Label ID="LblDomani" runat="server">Eventi di <br>domani</asp:Label></div>
        </td>
        <td style="width: 100px">
            <div class="Selector" id="SelectorDef5" onclick="OpenEvents(5)">
                <asp:Label ID="LblTutti" runat="server" Text="Calendario eventi"></asp:Label>
            </div>
        </td>
        <td style="width: 100px">
            <div class="Selector" id="SelectorDef6" onclick="OpenEvents(6)">
                <asp:Label ID="LblEventiGratis" runat="server" Text="Ingresso libero"></asp:Label>
            </div>
        </td>
        <td style="width: 100px">
            <div class="Selector" id="SelectorDef4">
                <asp:Label ID="LblCerca" runat="server">Cerca evento</asp:Label></div>
        </td>
    </tr>
    <tr>
        <td colspan="6">
            <div id="PanelDef1">
                <div class="Top">
                </div>
                <div class="Medium">
                    <asp:Repeater ID="RptEventi1" runat="server">
                        <ItemTemplate>
                            <table class="Repeater">
                                <tr>
                                    <td rowspan="2">
                                        <asp:Image ID="ImgTarget" Width="50px" runat="server" ImageUrl='<%#DataBinder.Eval(Container.DataItem, "ImgEvento")%>' />
                                    </td>
                                    <td>
                                        <%#DataBinder.Eval(Container.DataItem, "NomeEvento")%>
                                        <a name="fb_share" type="icon_link" share_url='<%#DataBinder.Eval(Container.DataItem, "LinkInterno")%>'>
                                            Condividi su Facebook</a>
                                        <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"> </script>
                                    </td>
                                    <td>
                                        <div id='<%#DataBinder.Eval(Container.DataItem, "ImageApriDefId")%>' style="cursor: pointer">
                                            <asp:Image ID="Image1" Width="30px" Height="30px" runat="server" ImageUrl="~/Styles/Images/Plus.png" /></div>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <div class="DivSingoloEvento" id='<%#DataBinder.Eval(Container.DataItem, "ItemTemplateDefId")%>'>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="Label3" runat="server" Text="Inizia:" CssClass="Repeater"></asp:Label>
                                                        <%#DataBinder.Eval(Container.DataItem, "DataInizio")%>
                                                        &nbsp &nbsp
                                                        <asp:Label ID="Label4" runat="server" Text="Finisce: " CssClass="Repeater"></asp:Label>
                                                        <%#DataBinder.Eval(Container.DataItem, "DataFine")%>
                                                        &nbsp &nbsp
                                                        <asp:HyperLink ID="HLPaginaEvento" runat="server" Target="_blank" NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "LinkInterno")%>'>Maggiori dettagli e mappa</asp:HyperLink>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="LblDove" runat="server" Text="Dove: " CssClass="Repeater"></asp:Label>
                                                        <%#DataBinder.Eval(Container.DataItem, "Indirizzo")%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label runat="server" ID="LblDescrizione" Visible="false" Text="Descrizione"
                                                            CssClass="Repeater"> </asp:Label>
                                                        <%#DataBinder.Eval(Container.DataItem, "DescrizioneEvento")%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:HyperLink ID="HLVirtualPath" Visible='<%#DataBinder.Eval(Container.DataItem, "BrochurePresente")%>'
                                                            runat="server" Target="_blank" NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "Brochure")%>'> download Brochure </asp:HyperLink>
                                                        &nbsp;
                                                        <asp:HyperLink ID="HyperLink1" Visible='<%#DataBinder.Eval(Container.DataItem, "LinkPresente")%>'
                                                            runat="server" Target="_blank" NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "Link")%>'>link utile evento</asp:HyperLink>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="LblOrganizzatore" runat="server" Text="Organizzatore: " CssClass="Repeater"></asp:Label>
                                                        <%#DataBinder.Eval(Container.DataItem, "Organizzatore")%>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
                <div class="Bottom">
                </div>
            </div>
            <div id="PanelDef2">
                <div class="Top">
                </div>
                <div class="Medium">
                    <asp:Repeater ID="RptEventi2" runat="server">
                        <ItemTemplate>
                            <table class="Repeater">
                                <tr>
                                    <td rowspan="2">
                                        <asp:Image ID="ImgTarget" Width="50px" runat="server" ImageUrl='<%#DataBinder.Eval(Container.DataItem, "ImgEvento")%>' />
                                    </td>
                                    <td>
                                        <%#DataBinder.Eval(Container.DataItem, "NomeEvento")%>
                                        <a name="fb_share" type="icon_link" share_url='<%#DataBinder.Eval(Container.DataItem, "LinkInterno")%>'>
                                            Condividi su Facebook</a>
                                        <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"> </script>
                                    </td>
                                    <td>
                                        <div id='<%#DataBinder.Eval(Container.DataItem, "ImageApriId")%>' style="cursor: pointer">
                                            <asp:Image ID="Image1" Width="30px" Height="30px" runat="server" ImageUrl="~/Styles/Images/Plus.png" /></div>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <div class="DivSingoloEvento" id='<%#DataBinder.Eval(Container.DataItem, "ItemTemplateId")%>'>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="Label3" runat="server" Text="Inizia:" CssClass="Repeater"></asp:Label>
                                                        <%#DataBinder.Eval(Container.DataItem, "DataInizio")%>
                                                        &nbsp &nbsp
                                                        <asp:Label ID="Label4" runat="server" Text="Finisce: " CssClass="Repeater"></asp:Label>
                                                        <%#DataBinder.Eval(Container.DataItem, "DataFine")%>
                                                        &nbsp &nbsp
                                                        <asp:HyperLink ID="HLPaginaEvento" runat="server" Target="_blank" NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "LinkInterno")%>'>Maggiori dettagli e mappa</asp:HyperLink>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="LblDove" runat="server" Text="Dove: " CssClass="Repeater"></asp:Label>
                                                        <%#DataBinder.Eval(Container.DataItem, "Indirizzo")%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label runat="server" ID="LblDescrizione" Visible="false" Text="Descrizione"
                                                            CssClass="Repeater"> </asp:Label>
                                                        <%#DataBinder.Eval(Container.DataItem, "DescrizioneEvento")%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:HyperLink ID="HLVirtualPath" Visible='<%#DataBinder.Eval(Container.DataItem, "BrochurePresente")%>'
                                                            runat="server" Target="_blank" NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "Brochure")%>'> download Brochure </asp:HyperLink>
                                                        &nbsp;
                                                        <asp:HyperLink ID="HyperLink1" Visible='<%#DataBinder.Eval(Container.DataItem, "LinkPresente")%>'
                                                            runat="server" Target="_blank" NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "Link")%>'>link utile evento</asp:HyperLink>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="LblOrganizzatore" runat="server" Text="Organizzatore: " CssClass="Repeater"></asp:Label>
                                                        <%#DataBinder.Eval(Container.DataItem, "Organizzatore")%>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
                <div class="Bottom">
                </div>
            </div>
            <div id="PanelDef3">
                <div class="Top">
                </div>
                <div class="Medium">
                    <asp:Repeater ID="RptEventi3" runat="server">
                        <ItemTemplate>
                            <table class="Repeater">
                                <tr>
                                    <td rowspan="2">
                                        <asp:Image ID="ImgTarget" Width="50px" runat="server" ImageUrl='<%#DataBinder.Eval(Container.DataItem, "ImgEvento")%>' />
                                    </td>
                                    <td>
                                        <%#DataBinder.Eval(Container.DataItem, "NomeEvento")%>
                                        <a name="fb_share" type="icon_link" share_url='<%#DataBinder.Eval(Container.DataItem, "LinkInterno")%>'>
                                            Condividi su Facebook</a>
                                        <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"> </script>
                                    </td>
                                    <td>
                                        <div id='<%#DataBinder.Eval(Container.DataItem, "ImageApriId")%>' style="cursor: pointer">
                                            <asp:Image ID="Image1" Width="30px" Height="30px" runat="server" ImageUrl="~/Styles/Images/Plus.png" /></div>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <div class="DivSingoloEvento" id='<%#DataBinder.Eval(Container.DataItem, "ItemTemplateId")%>'>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="Label3" runat="server" Text="Inizia:" CssClass="Repeater"></asp:Label>
                                                        <%#DataBinder.Eval(Container.DataItem, "DataInizio")%>
                                                        &nbsp &nbsp
                                                        <asp:Label ID="Label4" runat="server" Text="Finisce: " CssClass="Repeater"></asp:Label>
                                                        <%#DataBinder.Eval(Container.DataItem, "DataFine")%>
                                                        &nbsp &nbsp
                                                        <asp:HyperLink ID="HLPaginaEvento" runat="server" Target="_blank" NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "LinkInterno")%>'>Maggiori dettagli e mappa</asp:HyperLink>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="LblDove" runat="server" Text="Dove: " CssClass="Repeater"></asp:Label>
                                                        <%#DataBinder.Eval(Container.DataItem, "Indirizzo")%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label runat="server" ID="LblDescrizione" Visible="false" Text="Descrizione"
                                                            CssClass="Repeater"> </asp:Label>
                                                        <%#DataBinder.Eval(Container.DataItem, "DescrizioneEvento")%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:HyperLink ID="HLVirtualPath" Visible='<%#DataBinder.Eval(Container.DataItem, "BrochurePresente")%>'
                                                            runat="server" Target="_blank" NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "Brochure")%>'> download Brochure </asp:HyperLink>
                                                        &nbsp;
                                                        <asp:HyperLink ID="HyperLink1" Visible='<%#DataBinder.Eval(Container.DataItem, "LinkPresente")%>'
                                                            runat="server" Target="_blank" NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "Link")%>'>link utile evento</asp:HyperLink>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="LblOrganizzatore" runat="server" Text="Organizzatore: " CssClass="Repeater"></asp:Label>
                                                        <%#DataBinder.Eval(Container.DataItem, "Organizzatore")%>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
                <div class="Bottom">
                </div>
            </div>
            <div id="PanelDef4">
                <div class="Top">
                </div>
                <div class="Medium">
                    <div style="padding: 30px">
                        <asp:TextBox ID="TbTextToSearch" runat="server" Width="400px"></asp:TextBox>
                        &nbsp;<asp:Button ID="BtnSearch" runat="server" Text="Cerca" />
                        <br />
                        <asp:Label ID="LblSearch" runat="server" Text="Puoi cercare una parte del nome dell'evento, della sua descrizione, del luogo in cui si svolge o di chi lo organizza e del suo sito!!"
                            CssClass="Repeater"></asp:Label></div>
                    <asp:Repeater ID="RptEventi4" runat="server">
                        <ItemTemplate>
                            <table class="Repeater">
                                <tr>
                                    <td rowspan="2">
                                        <asp:Image ID="ImgTarget" Width="50px" runat="server" ImageUrl='<%#DataBinder.Eval(Container.DataItem, "ImgEvento")%>' />
                                    </td>
                                    <td>
                                        <%#DataBinder.Eval(Container.DataItem, "NomeEvento")%>
                                        <a name="fb_share" type="icon_link" share_url='<%#DataBinder.Eval(Container.DataItem, "LinkInterno")%>'>
                                            Condividi su Facebook</a>
                                        <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"> </script>
                                    </td>
                                    <td>
                                        <div id='<%#DataBinder.Eval(Container.DataItem, "ImageApriId")%>' style="cursor: pointer">
                                            <asp:Image ID="Image1" Width="30px" Height="30px" runat="server" ImageUrl="~/Styles/Images/Plus.png" /></div>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <div class="DivSingoloEvento" id='<%#DataBinder.Eval(Container.DataItem, "ItemTemplateId")%>'>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="Label3" runat="server" Text="Inizia:" CssClass="Repeater"></asp:Label>
                                                        <%#DataBinder.Eval(Container.DataItem, "DataInizio")%>
                                                        &nbsp &nbsp
                                                        <asp:Label ID="Label4" runat="server" Text="Finisce: " CssClass="Repeater"></asp:Label>
                                                        <%#DataBinder.Eval(Container.DataItem, "DataFine")%>
                                                        &nbsp &nbsp
                                                        <asp:HyperLink ID="HLPaginaEvento" runat="server" Target="_blank" NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "LinkInterno")%>'>Maggiori dettagli e mappa</asp:HyperLink>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="LblDove" runat="server" Text="Dove: " CssClass="Repeater"></asp:Label>
                                                        <%#DataBinder.Eval(Container.DataItem, "Indirizzo")%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label runat="server" ID="LblDescrizione" Visible="false" Text="Descrizione"
                                                            CssClass="Repeater"> </asp:Label>
                                                        <%#DataBinder.Eval(Container.DataItem, "DescrizioneEvento")%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:HyperLink ID="HLVirtualPath" Visible='<%#DataBinder.Eval(Container.DataItem, "BrochurePresente")%>'
                                                            runat="server" Target="_blank" NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "Brochure")%>'> download Brochure </asp:HyperLink>
                                                        &nbsp;
                                                        <asp:HyperLink ID="HyperLink1" Visible='<%#DataBinder.Eval(Container.DataItem, "LinkPresente")%>'
                                                            runat="server" Target="_blank" NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "Link")%>'>link utile evento</asp:HyperLink>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="LblOrganizzatore" runat="server" Text="Organizzatore: " CssClass="Repeater"></asp:Label>
                                                        <%#DataBinder.Eval(Container.DataItem, "Organizzatore")%>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
                <div class="Bottom">
                </div>
            </div>
            <div id="PanelAllHide" style="display: none">
                <asp:Repeater ID="RptEventiAllHide" runat="server">
                    <ItemTemplate>
                        <div class="DivSingoloEvento" id='<%#DataBinder.Eval(Container.DataItem, "ItemTemplateId")%>'>
                            <asp:HyperLink ID="HLPaginaEvento" runat="server" Target="_blank" NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "LinkInterno")%>'>Maggiori dettagli e mappa</asp:HyperLink>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
        </td>
        <td>
            <div style="width: 122px; height: 242px;">
                <script type="text/javascript"><!--
                    google_ad_client = "ca-pub-6834582110263834";
                    /* Padovado home */
                    google_ad_slot = "7848122763";
                    google_ad_width = 120;
                    google_ad_height = 240;
//-->
                </script>
                <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script>
            </div>
        </td>
    </tr>
</table>
<asp:TextBox ID="TBSelectedTab" runat="server">2</asp:TextBox>
